<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateGameConfigsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('game_configs', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->integer('game_id')->nullable();
			$table->integer('prize_id')->nullable();
			$table->integer('level')->nullable();
			$table->integer('chance')->nullable();
			$table->timestamps();
			$table->string('color', 100)->nullable()->comment('颜色排序');
			$table->string('name', 100)->nullable();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('game_configs');
	}

}
